Written By: 川俣 晶
コンソールアプリ終了時、結果を見る前にウィンドウが閉じることを回避するために、何かするまで止まっているようにする方法はいろいろありますが。
さるサンプルソースで見た方法。
この手もあったのか。
Console.WriteLine("Press Ctrl-C to terminate...");
using (ManualResetEvent manualResetEvent = new ManualResetEvent(false))
{
manualResetEvent.WaitOne();
}